package labs.utilities;

public class PrintUtilities {
	public static void printError(String str, Object... objects) {
		String prefix = "[Error --------] ";
		System.err.println(prefix + String.format(str, objects));
		System.out.println();
	}

	// public static void printInfo(String str, Object... objects) {
	// String prefix = "[Error ----------] ";
	// System.out.println(String.format(str, objects));
	// }

	public static void printInfo(String str, Object... objects) {
		String prefix = "[Info ---------] ";
		System.out.println(prefix + String.format(str, objects));
	}

	public static void printDebug(String str, Object... objects) {
		String prefix = "[Debug --------] ";
		try {
			System.out.println(prefix + String.format(str, objects));
		} catch(Exception e) {
			System.out.println(prefix + str);
		}
	}

	public static void printException(Exception e) {
		String prefix = "[Exception ----] ";
		System.out.println(prefix + e.getMessage());
	}
	public static void printSeparator() {
		System.out.println("---------------------------------------------");
		System.out.println();
		
	}
}
